﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class admin_makeIndex : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        makeIndex();
    }
    void makeIndex()
    {
        //生成静态页面
        string url = "http://" + Request.Url.Authority + "/Default.aspx";
        new System.Net.WebClient().DownloadFile(url, Server.MapPath("~/Default.html"));
        new System.Net.WebClient().DownloadFile(url, Server.MapPath("~/index.html"));
        title.Text = "生成成功!";
    }
}
